import { DatePicker as AntdDatePicker } from 'antd';
import React from 'react';
import { commonProps } from './index';

// type
import type { AntdTimePickerProps } from './index';

export type Props = AntdTimePickerProps;

function TimePicker(props: Props) {
  const TimePickerProps = {
    ...commonProps,
    ...props,
  };
  return <AntdDatePicker.TimePicker {...TimePickerProps} />;
}

export default TimePicker;
